/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import dao.LoginDAO;
import java.sql.SQLException;
import model.FuncionarioLogadoMODEL;
import model.LoginMODEL;

/**
 *
 * @author Welisson
 */
public class LoginController {
    
    public FuncionarioLogadoMODEL logar(LoginMODEL login){
        
        try {
            return new LoginDAO().existe(login.getCpf(), login.getSenha());
            
        } catch (SQLException ex) {
            ex.printStackTrace(System.out);
        }
        return null;
    }
    
}
